﻿using System;
using PJSIP;

namespace SIPSDk.Data
{
    public class AccountStateEventArgs : EventArgs
    {
        public AccountStateEventArgs(SIPSDk.Pjsip.MyAccount account, pjsip_status_code state) : this(account, state, "")
        {
        }

        public AccountStateEventArgs(SIPSDk.Pjsip.MyAccount account, pjsip_status_code state, string reason)
        {
            Account = account;
            State = state;
            Reason = reason;
        }

        public SIPSDk.Pjsip.MyAccount Account { get; private set; }
        public pjsip_status_code State { get; private set; }
        public string Reason { get; private set; }
    }
}